<?php 
     require_once('nav.php');
          $id=$_GET['id'];
          $conn=connect();
          $sql = "select * from flower where zb_id={$id}";
          $result = mysql_query($sql) or die('filed'.mysql_error());
          $orders = fetch_array($result);


?>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
         <div class="table-responsive">
          <h1 class="page-header">鲜花列表</h1>
            <table class="table table-striped table-hover">
              <thead>
                <tr>
                  <th>鲜花标题</th>
                  <th>产地</th>
                  <th>简介</th>
                  <th>鲜花封面图片</th>
                </tr>
              </thead>
              <tbody>
                <?php //var_dump($orders);
                    foreach ($orders as $one) {
                              echo '<tr>';
                              echo '<td>'.$one['zb_title'].'</td>';
                              echo '<td>'.$one['zb_place'].'</td>';
                              echo '<td>'.$one['zb_intro'].'</td>';
                              echo '<td align="center"><img src='.UserPhotoPath.$one['zb_pic'].' width=60 height=80 alt="无图像"></td>';
                    }
               ?>
              </tbody>
            </table>
            </div>
        </div>
<?php require_once("footer.php") ?>
      